<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<%
	response.setHeader ("Cache-Control", "no-cache");
	response.setHeader ("Pragma", "no-cache");
	response.setDateHeader ("Expires", 0); 
%>
<!doctype html>
<html>
<head>
	
	<meta charset="utf-8">
	<title><s:text name="app.title"/></title>
	
	<link rel="icon" href="/ProjetoDWS/favicon.ico" type="image/x-icon">
	<link href="/ProjetoDWS/css/bootstrap.css" rel="stylesheet">
	<link href="/ProjetoDWS/css/main.css" rel="stylesheet">
	
	<script src="/ProjetoDWS/js/jquery.js"></script>
	<script src="/ProjetoDWS/js/bootstrap.min.js"></script>
	<script src="/ProjetoDWS/js/cookie.js"></script>
	<script>
	
	$(function() {
		
	 	// define o nome do usuário no cabeçalho
		$('#user-name').html('<i class="icon-user"></i> '+ getCookie('nome') +' <span class="caret"></span>');
	 	
		// define a data
		$('#data-msg').html('<i class="icon-calendar"></i> '+ getCookie('data'));
		
	 	// evento de logout
	 	$('#logout').on('click', function(e) {
	 		window.location = "http://localhost:8080/ProjetoDWS/cd/logout.action";
		 	e.preventDefault;
	 	});
	 	
	});
	</script>
	
</head>
	
<body>
  
  <div id="wrapper">